home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicViewportUI.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.0 KB  |  35 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import javax.swing.JComponent;
  4. import javax.swing.LookAndFeel;
  5. import javax.swing.plaf.ComponentUI;
  6. import javax.swing.plaf.ViewportUI;
  7.  
  8. public class BasicViewportUI extends ViewportUI {
  9.    private static ViewportUI viewportUI;
  10.  
  11.    public static ComponentUI createUI(JComponent var0) {
  12.       if (viewportUI == null) {
  13.          viewportUI = new BasicViewportUI();
  14.       }
  15.  
  16.       return viewportUI;
  17.    }
  18.  
  19.    protected void installDefaults(JComponent var1) {
  20.       LookAndFeel.installColorsAndFont(var1, "Viewport.background", "Viewport.foreground", "Viewport.font");
  21.    }
  22.  
  23.    public void installUI(JComponent var1) {
  24.       super.installUI(var1);
  25.       this.installDefaults(var1);
  26.    }
  27.  
  28.    protected void uninstallDefaults(JComponent var1) {
  29.    }
  30.  
  31.    public void uninstallUI(JComponent var1) {
  32.       super.uninstallUI(var1);
  33.    }
  34. }
  35.